// i18n （PS：导入放到 APP.vue 导入之前，因为后面我们会在 app.vue 中使用国际化内容）
import i18n from '@/i18n'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import installElementPlus from './plugins/element'
// 导入 svgIcon
import installIcons from '@/icons'
// filter
import installFilter from '@/filters'
import installDirective from '@/directives'

import './styles/index.scss'
// 路由鉴权
import './permission'
const app = createApp(App)
installIcons(app) // 图标
installElementPlus(app)// elementui
installFilter(app) // 过滤器
installDirective(app) // 自定义指令
app.use(store).use(i18n).use(router).mount('#app')
